From 7cedcce5e72fa48f95f64729f2ca7642adc83368 Mon Sep 17 00:00:00 2001 From: Jehan Date: Wed, 5 Jul 2017 02:15:27 +0200 Subject: [PATCH] babl: improve log output on Android. No need to log end of lines. This is not like a printf where we are trying to pretty-print. --- babl/babl-internal.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/babl/babl-internal.h b/babl/babl-internal.h index 24ad347..efa593c 100644 --- a/babl/babl-internal.h +++ b/babl/babl-internal.h @@ -62,7 +62,6 @@ #include #endif - Babl * babl_conversion_find (const void *source, const void *destination); double babl_conversion_error (BablConversion *conversion); @@ -137,7 +136,7 @@ real_babl_log_va(const char *file, #ifdef __ANDROID_API__ __android_log_print (ANDROID_LOG_DEBUG, "BABL", - "%s:%i %s()\n\t", file, line, function); + "%s:%i %s()", file, line, function); #else fprintf (stdout, "%s:%i %s()\n\t", file, line, function); #endif @@ -146,10 +145,8 @@ real_babl_log_va(const char *file, #ifdef __ANDROID_API__ __android_log_vprint (ANDROID_LOG_DEBUG, "BABL", fmt, varg); - __android_log_write (ANDROID_LOG_DEBUG, "BABL", "\n"); #else vfprintf (stdout, fmt, varg); - fprintf (stdout, "\n"); fflush (NULL); #endif -- 2.30.2